package service

import (
	JWT "chat_gin/common/middleware"
	"fmt"
	"github.com/gin-gonic/gin"
	"net/http"
)

func GetIndex(c *gin.Context) {
	// 校验token是否有效
	result, err := JWT.ParseToken(c.Query("token"))
	fmt.Println("校验token结果", result, err)

	c.JSON(http.StatusOK, gin.H{
		"msg": "hello",
	})
}
